<template>
	<view class="evaluate">
		<view class="list flex_box" v-for="(item,index) in list" :key="index">
			<image :src="item.avatar" mode="aspectFill" class="left"></image>
			<view class="right">
				<view class="name">{{item.nickname}}</view>
				<view class="star flex_box">
					<uni-rate :disabled="true" disabledColor="#EF5233" :value="item.star" :size="18" />
					<view>{{item.create_time}}</view>
				</view>
				<view class="people flex_box">
					<image :src="item.technician.work_image" mode="aspectFill"></image>
					<view class="text flex_box">
						<text class="hidden">{{item.technician.real_name}}</text>
						<i></i>
						<text class="hidden">{{item.title}}</text>
					</view>
				</view>
			</view>
		</view>
		<blankPage img="https://qiniu-cdn.maeiyun.com/imgs/blank/no_order.png" text="暂无评价记录" :width="161" :height="129" v-show="list.length == 0"></blankPage>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[],
				page:1
			}
		},
		onLoad() {
			this.getList()
		},
		onReachBottom() {
			this.getList()
		},
		methods: {
			getList(){
				var that = this
				this.request.httpTokenRequest({
					url: "store.store/getContentList",
					method: "get"
				}, {
					page:this.page
				}).then(function(data) {
					if (data.code == 0) {
						that.list = [...that.list,...data.data.data]
						that.page++
					} else {
						that.isSend = false
					}
				})
			}
		}
	}
</script>

<style lang="less" scoped>
	.evaluate {
		padding: 30rpx;
	}
	.list {
		padding: 30rpx 0;
		border-bottom: 1rpx solid #E3E2E2;
		.left {
			width: 81rpx;
			height: 81rpx;
			border-radius: 50%;
		}
		.right {
			margin-left: 27rpx;
			.name {
				font-size: 30rpx;
				font-weight: 600;
				color: #333333;
				line-height: 42rpx;
			}
			.star {
				margin: 10rpx 0 15rpx;
				align-items: center;
				view {
					font-size: 22rpx;
					color: #858688;
					line-height: 30rpx;
					margin-right: 5rpx;
				}
			}
			.people {
				width: fit-content;
				padding: 0 5rpx 0 5rpx;
				height: 40rpx;
				background: #FFFFFF;
				border-radius: 20rpx;
				align-items: center;
				margin-bottom: 13rpx;
				.text {
					align-items: center;
					text {
						font-size: 24rpx;
						color: #333333;
						line-height: 33rpx;
						margin: 0 10rpx;
						max-width: 170rpx;
					}
					i {
						width: 1rpx;
						height: 24rpx;
						background: #D7D7D7;
					}
				}
				image {
					width: 34rpx;
					height: 34rpx;
					border-radius: 50%;
				}
			}
			.address {
				font-size: 22rpx;
				color: #858688;
				line-height: 30rpx;
			}
		}
	}
</style>
